//
//  HomeCollectionViewCell.swift
//  ParkManage
//
//  Created by Jalon on 9/21/20.
//  Copyright © 2020 diligrp. All rights reserved.
//

import UIKit

class HomeCollectionViewCell: UICollectionViewCell {

    @IBOutlet weak var bgImageView: UIImageView!
    @IBOutlet weak var iconImageVIew: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        makeRoundedCorners(20)
    }
    
    var homeCellModel: HomeCellItem? {
        didSet {
            guard let item = homeCellModel else { return }
            titleLabel.text = item.title
            bgImageView.image = item.bgImage
            iconImageVIew.image = item.image
        }
    }

}
